<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ECSHOP v2.7.3" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> {{config('app.name')}}--@yield('title')--专业的药材商城</title>
<meta name="Description" content="中国中药网是专业的药材商城-网上中药店，我们可提供上千种药材品种直销，便捷，诚信的服务,为您提供愉悦的网上药材购买体验。" />
<meta name="Keywords" content="中药,药材,中药材,中草药,中药网,中药商城,中药材商城,药材网,中药材网,中草药网,中国药材,中国药材网,网上中药店,网上药材店,网上买中药,网上买中药材,购买中药,网上购买中药" />
<meta name="csrf-token" content="{{ csrf_token() }}">
<link href="{{asset('yao/css/home7.css')}}" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{{asset('yao/js/index_url.js')}}"></script>
<script type="text/javascript" src="{{asset('yao/js/jquery-1.7.2.js')}}"></script>
<script type="text/javascript" src="{{asset('yao/js/common.js')}}"></script>
<script type="text/javascript" src="{{asset('yao/js/jquery.plus.js')}}"></script>
<script src="{{asset('yao/js/lazyload.js')}}" type="text/javascript"></script>
<script type="text/javascript" src="{{asset('yao/js/transport.js')}}"></script>
<script type="text/javascript" src="{{asset('yao/js/common.js')}}"></script>
</head>
<body class="hchstw1">
<script type="text/javascript">
var process_request = "正在处理您的请求...";
</script>

<div class="top7">
    <div class="abody">
        <p class="left">
        <span id="J_TaobaoBar">
        </span>
        <span id="is_show_login_out">
        </span>
        <span id="loginInfo">
         您好，
         @if(!empty(Session('user_info')))
           {{Session('user_info') -> name}} , 欢迎您回来
         <span class="la">
        <a href="{{url('home/user/logout')}}">退出</a><small>|</small>
        <a href="{{url('home/user/userinfo')}}">用户中心</a>
        </span>
         @else
         欢迎光临ecnol.com - 中药网上商城！<small>|</small>
        <span class="la">
        <a href="{{url('home/user/login')}}">登录</a><small>|</small>
        <a href="{{url('home/user/register')}}">快速注册</a>
        </span>
         @endif
        </span>


        </p>

        <p class="rlink">

        <small>|</small>
        <a href="{{ url('home/user/usersc') }}" >我的收藏</a>

        <small>|</small>
        <a href="{{url('home/user/userinfo')}}" >用户中心</a>

        </p>

        <dl>
            <dt><a href="{{ url('home/cart/index') }}">购物车<strong>
        <!--[if lte IE 6]></td></tr></table></a><![endif]--></dt></dl>
        <div class="clear"></div>
    </div>
</div>
<div class="header7">
<div class="abody">
    <div class="header6">
            <div class="logo"><a href="{{url('home/index')}}"><img src="{{asset('yao/picture/logo_index.gif')}}" alt="中药网"/></a></div>

            <div class="tel">
            <p>400-1828-286</p>
            </div>
        <div class="search">
            <dl>
   <script type="text/javascript">

    <!--
    function checkSearchForm()
    {
        if(document.getElementById('keyword').value)
        {
            return true;
        }
        else
        {
            alert("请输入搜索关键词！");
            return false;
        }
    }
    -->

    </script>
                <form id="searchForm" name="searchForm" method="get" action="{{url('home/goods/select')}}"   >
                <dt><input name="gname" id="keyword" type="text" class="inp2" value="@if(!empty(old('gname'))){{old('gname')}}@endif" onfocus="" onblur=""/>
                  <ul  id="lis" class='none' onmousemove="" onMouseOut="">
                  </ul>
                </dt>
                <dd id="sub"><img  src="{{asset('yao/images/search_sub.jpg')}}" alt=""/></dd>
                </form>
            </dl>
            <p>
<a href="http://www.ecnol.com/goods-199.html">益母草</a> <a href="http://www.ecnol.com/goods-7.html">防风</a> <a href="http://www.ecnol.com/goods-270.html">锁阳</a> <a href="http://www.ecnol.com/goods-279.html">麦冬</a> <a href="http://www.ecnol.com/goods-186.html">艾叶</a>  <a href="http://www.ecnol.com/goods-245.html">白术</a>  <a href="http://www.ecnol.com/goods-272.html">当归</a> <a href="http://www.ecnol.com/goods-249.html">甘草</a> <a href="http://www.ecnol.com/goods-135.html">茯苓</a> <a href="http://www.ecnol.com/goods-244.html">黄芪</a> </p>
        </div>
            <div class="clear"></div>
    </div>
</div>
</div>
<div class="menu7">
    <div class="abody">
    <div class="mxal">
        <p id="dk" class="til">所有商品分类</p>
    </div>
    <div class="mxnx">
    <ul>

        <li class="this"><a href="{{url('home/index')}}" title="中药"><span title="首页">首页</span></a></li>

        <li ><a href="{{url('home/goods/index/29')}}"><span title="药食同源">药食同源</span></a></li>

        <li ><a href="{{url('home/goods/index/6')}}"><span title="滋补中药">滋补中药</span></a></li>

        <li ><a href="{{url('home/goods/index/1')}}"><span title="滋补汤料">滋补汤料</span></a></li>

        <li ><a href="{{url('home/goods/index/3')}}"><span title="煎药器具">煎药器具</span></a></li>

        <li ><a href="{{url('home/goods/index/2')}}"><span title="花茶配方">花茶配方</span></a></li>

        <li ><a href="{{url('home/forum/index')}}"><span title="留言互动">留言互动</span></a></li>

        <li ><a href="{{url('home/article/index')}}"><span title="中药健康">中药健康</span></a></li>


        <li ><a href="{{ url('home/notice/index') }}"><span title="关于我们">关于我们</span></a></li>

        <div class="clear"></div>
        <!--<div class="new1"></div>-->
    </ul>
    </div>
    <div class="rbox">
        <p class="p1"><a href="#">今日团购</a></p>
    </div>
    <div class="clear"></div>
    </div>
</div>
<div class="slidebox">

<div  class="homenav">
    <div  id="list" class="lnav7">
        @foreach($pData as $row)
        <dl class="xc1">
            <dt><a href="{{asset('home/goods/index')}}/{{$row -> id}}"><big>{{$row -> name}}</big><!--[if gte IE 7]><!--></a><!--<![endif]-->
                                <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <ul>
                        <li class="tx"><strong>{{$row -> name}}</strong><em>&nbsp;</em></li>
                        <li class="txt">

                            @foreach($list[$row -> id] as $rows)
                            <a href="{{asset('home/goods/index')}}/{{$rows -> id}}">{{$rows -> name}}</a>

                           @endforeach

                            <div class="clear"></div>
                        </li>
                        <li class="def">
                    </ul>
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                </dt>
        </dl>
        @endforeach
            <div class="clear"></div>
  </div></div>
  @yield('content')
<div class="footer7">
    <div class="abody">
    <div class="kfbox7 crz">

         <ul class="s1">
            <li class="t1 im1">链接</li>
                    @foreach($url as $row)
                        <li><a href="{{$row -> url}}" target="_blank" rel="nofollow" >{{ $row->name }}</a></li>
                       
                    @endforeach
        </ul>

        <ul class="s2">
            <li class="t1 im2">链接</li>
                     

        </ul>

        <ul class="s3">
            <li class="t1 im3">链接</li>
                       

        </ul>

        <ul class="s4">
            <li class="t1 im4">链接</li>
                        

        </ul>

        <ul class="s5">
            <li class="t1 im5">链接</li>
                       

        </ul>

        <ul class="s6">
            <li class="t1 im6">联系客服</li>
            <li>订购热线</li>
            <li class="t2">400-1828-286</li>
            <li>在线客服</li>
            <li class="t3"><a href="http://wpa.qq.com/msgrd?V=1&uin=249907263&Site=%E4%B8%AD%E8%8D%AF%E7%BD%91&Menu=yes" target="_blank" rel="nofollow">点击这里进入</a></li>
        </ul>
    </div>
    <div class="clear"></div>
    <ul class="service">
        <li class="t1" title="支付宝特约商家"><a href="#" target="_blank" rel="nofollow">支付宝特约商家</a></li>
        <li class="t2" title="7天退换货保障"><a href="#" target="_blank" rel="nofollow">正品保障 100%原产地</a></li>
        <li class="t3" title="满200元免费配送"><a href="#" target="_blank" rel="nofollow">天退换货保障</a></li>
        <li class="t4" title="400城市送货上市货到付款"><a href="#" target="_blank" rel="nofollow">满200元免费配送</a></li>
        <li class="t5" title="400城市送货上市货到付款"><a href="#" target="_blank" rel="nofollow">400城市送货上市货到付款</a></li>
    <div class="clear"></div>
    </ul>
    <div class="line15"></div>
    <p class="link">

    <a href="#">回顶部</a>
    </p>
        <p>Copyright © 2007-2016 www.ecnol.com. All Rights Reserved.  粤ICP备<a href="http://www.miibeian.gov.cn/" target="_blank">05065559号-11</p>
    <p> <a href="http://www.ecnol.com/">中药网</a> 版权所有 并保留所有权利. <a href="http://www.ecnol.com/zhongyaochangshi/">中药常识</a> <a href="http://www.bencaopu.com/">中药</a>  <a href="http://www.e138.net/">中药材</a><a href="http://www.ecnol.com/zhongyao/category/tupian/">中药图片大全</a></p>
    <div align="center">
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F71124d3e0544103d477ce40e0647cced' type='text/javascript'%3E%3C/script%3E"));
</script>
      </div>
    <div class="line10">
      <div align="center"></div>
    </div>
    </div>
</div>
<div class="rnavx">
    <div class="floarcart" id="floarcart" style="display: none;">
        <ol id="new_cart_detail">
            <li class="title"><em title="关闭" onclick="closebox('floarcart');">x</em>商品清单</li>
            <div class="info">购物车中没有商品</div>
        </ol>
        <div class="tx2" id="new_cart_detail_div">
            0件商品共0元<small>|</small><a href="flow.php?step=checkout" target="_blank">去结算</a>
        </div>
    </div>
</div>
<script type="text/javascript">
        window.onload = function ()
        {
            $('#sub').on('click',function()
            {
                 $(this).css('boxShadow','0px 0px 1px 1px #007500');
                 $('#searchForm').submit();
            });
            $.ajaxSetup({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                }
            });
            // $('#keyword').on('keydown',function()
            // {
            //       var name = $(this).val();
            //       console.log(name);
            //       $.ajax({
            //            url:"{{ url('home/goods/getname') }}",
            //            type:'GET',
            //            data:{name:name},
            //            success:function(data)
            //            {
            //                 $('#keyword').val(data);
            //            },
            //            error:function()
            //            {

            //            },
            //            dataType:'TEXT'
            //       });
            // })
        }
</script>
</body>
</html>
</body>
</html>
